/**
 * @author swiip
 */

$C.create(["Archetype.component.graphicalComponent"], {
	setup: {
		dependencies: {
			components: {
				inner: "@Lazy NewComponents.components.innerComponent"
			}
		},
        behaviors: {
			"li.class1": {
				click: function() {
					Logger.debug("click on 'li .class1' in view");
				},
				mouseover: function() {
					Logger.debug("mouseOver on 'li .class1' in view");
				}
			}
		}
	},
	initialize: function() {
		Logger.debug("New component loaded !!");
		
		this.fireHelloWorld("With method name");
		this.fire("HelloWorld", "With parameter");
		
		this.anchor = $$("#bodyContent")[0];
		this.render();
	},
	fireHelloWorld: _,
	onHelloWorld: function(data) {
		Logger.debug("OnHelloWorld with method name");
	}
});